package com.situ.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@ToString
@TableName(value ="t_product")
@Data
@Schema(description = "商品信息")
public class TProduct implements Serializable {
    @TableId
    @Schema(description = "商品id")
    private Integer id;

    @Schema(description = "商品分类id")
    private Integer categoryId;

    @Schema(description = "商品系列")
    private String itemType;

    @Schema(description = "商品名称")
    private String title;

    @Schema(description = "商品卖点")
    private String sellPoint;

    @Schema(description = "商品价格")
    private Long price;

    @Schema(description = "商品数量")
    private Integer num;

    @Schema(description = "商品图片")
    private String image;

    @Schema(description = "商品状态")
    private Integer status;

    @Schema(description = "商品优先级")
    private Integer priority;

    @Schema(description = "创建时间")
    private Date createdTime;

    @Schema(description = "修改时间")
    private Date modifiedTime;

    @Schema(description = "创建人")
    private String createdUser;

    @Schema(description = "修改人")
    private String modifiedUser;

}